package ch.selise.exercise.pattern.notepad.command.impl;

import java.util.Scanner;

import ch.selise.exercise.pattern.notepad.command.ICommand;

public class ExitCommand implements ICommand {

	public ExitCommand(Scanner in) {
		in.close();
	}

	@Override
	public void execute() {
		System.exit(0);

	}

}
